ext4: zero out the unused memory region in the extent tree block
authorSriram Rajagopalan <sriramr@arista.com>
Fri, 10 May 2019 23:28:06 +0000 (19:28 -0400)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 18 Jul 2019 22:23:17 +0000 (23:23 +0100)
commit217e7702b1152408c8a88d351ab00c2facb61bf8
tree8811401c41035ee7d4f95210d4d3afa631eec88b
parentece6f2866b449b7df6ae7b56f9e1215da552a5c2
ext4: zero out the unused memory region in the extent tree block

This commit zeroes out the unused memory region in the buffer_head
corresponding to the extent metablock after writing the extent header
and the corresponding extent node entries.

This is done to prevent random uninitialized data from getting into
the filesystem when the extent block is synced.

This fixes CVE-2019-11833.

Signed-off-by: Sriram Rajagopalan <sriramr@arista.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name ext4-zero-out-the-unused-memory-region-in-the-extent.patch
fs/ext4/extents.c